# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=py3-miniflux
pkgver=1.1.1
pkgrel=0
pkgdesc="Python client for Miniflux API"
url="https://miniflux.app/"
license="MIT"
arch="noarch"
depends="py3-requests"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
checkdepends="py3-pytest"
subpackages="$pkgname-pyc"
source="https://github.com/miniflux/python-client/archive/$pkgver/py3-miniflux-$pkgver.tar.gz"
builddir="$srcdir/python-client-$pkgver"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

check() {
	pytest
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/miniflux-$pkgver-py3-none-any.whl
}

sha512sums="
0d187400796d0480a0019847df456d15a14c34b940d692de00b02c5e9279387d5f9fc68bba4eb0e66481bf816cdf323e210195428ec3de7225bf40722abaece6  py3-miniflux-1.1.1.tar.gz
"
